package com.sakura.system.entity.upload;

//import com.baomidou.mybatisplus.annotations.TableId;
//import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Entity
@Table(name = "sr_web_filevideo_list")
public class SrWebFilevideoList {

    @Id
    @JsonSerialize(using = ToStringSerializer.class)//解决8位long精度丢失问题
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    private String name;
    private String url;
    private String createid;
    private Boolean isdel;
    private Date createtime;
    private Date updatetime;
}
